import com.hakim.wfb.sms.params.SendMsgParam;
import com.hakim.wfb.sms.service.api.SmsSendService;
import com.hakim.wfb.sms.service.impl.SmsSendServiceImpl;
import com.hkfs.fundamental.common.utils.StrUtils;
import org.junit.Test;

/**
 * Created by GuoXinJie on 2017-03-23.
 */
public class test {


    @Test
    public void test01(){
        SmsSendService smsSendService = new SmsSendServiceImpl();
        String msg  = "您好,您的取票验证码为1234";
        SendMsgParam sendMsgParam =new SendMsgParam();
        String phone = "17682308036,13588210275";
        sendMsgParam.setFlag("1");
        sendMsgParam.setMobilePhone(phone);
        smsSendService.sendMsg(sendMsgParam,msg);
    }

    @Test
    public void createCode(){
        for (int i = 0; i < 100; i++) {
            String verifyCode = StrUtils.getRandomCode(6);
            System.out.println(verifyCode);
        }

    }

    /*@Test
    public void testMsg(){
        LimitRulesService limitRulesService =new LimitRulesServiceImpl();
        SendMsgParam sendMsgParam = new SendMsgParam();
        sendMsgParam.setFlag("1");
        sendMsgParam.setMobilePhone("17682308036");
        sendMsgParam.setCustomerId("111");
        limitRulesService.sendMsg(sendMsgParam);
    }*/
}
